package com.why.pojo;

import org.apache.solr.client.solrj.beans.Field;

import java.io.Serializable;

public class Product implements Serializable {
    @Field("id")
    private String id;
    @Field("name_ik")
    private String name;
    @Field("description_ik")
    private String description;
    @Field("price_f")
    private Float price;
    @Field("stock_i")
    private Integer stock;
    @Field("categorylevel1id_i")
    private Integer categorylevel1id;
    @Field("categorylevel2id_i")
    private Integer categorylevel2id;
    @Field("categorylevel3id_i")
    private Integer categorylevel3id;
    @Field("filename_s")
    private String filename;
    @Field("isdelete_i")
    private Integer isdelete;

    //用户购物车的数量
    private Integer carcount;

    public Integer getCarcount() {
        return carcount;
    }

    public void setCarcount(Integer carcount) {
        this.carcount = carcount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getCategorylevel1id() {
        return categorylevel1id;
    }

    public void setCategorylevel1id(Integer categorylevel1id) {
        this.categorylevel1id = categorylevel1id;
    }

    public Integer getCategorylevel2id() {
        return categorylevel2id;
    }

    public void setCategorylevel2id(Integer categorylevel2id) {
        this.categorylevel2id = categorylevel2id;
    }

    public Integer getCategorylevel3id() {
        return categorylevel3id;
    }

    public void setCategorylevel3id(Integer categorylevel3id) {
        this.categorylevel3id = categorylevel3id;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename == null ? null : filename.trim();
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }
}